package com.guoxue.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.guoxue.dao.IClientToServerDao;
import com.guoxue.domain.ClientToServerVo;

@Repository("clientToServerDaoImpl")
public class ClientToServerDaoImpl extends BaseDaoImpl<ClientToServerVo> implements IClientToServerDao {

	public List<ClientToServerVo> getClientToServerinfoList() {
		return find("from ClientToServerVo c");
	}

	public void saveClientToServerInfo(ClientToServerVo sendVo) {
		saveOrUpdate(sendVo);
	}
	public ClientToServerVo getClientToServerbyUid(int uid,int isType){
		return get("from ClientToServerVo c WHERE c.uid=? AND c.isType=?",new Object[]{uid,isType});
	}
}
